/* 
 * File:   CompressionData.h
 * Author: Daniela Meneses
 *
 * Created on April 10, 2013, 1:12 PM
 */

#ifndef COMPRESSIONDATA_H
#define	COMPRESSIONDATA_H

#include <cstring>

/**
 * Error codes.
 */
enum CompressionErrorCode
{
    OK = 0, INSUFFICCIENT_MEMORY = 1
};

/**
 * Structure to manage the data to be compressed or decompressed.
 */
struct CompressionData
{
    /**
     * Content size.
     */
    long contentSize;
    /**
     * Content
     */
    char* content;

    
    CompressionData()
    {
        memset(this, 0, sizeof (CompressionData));
    }
    
    CompressionData(int size, char* content) : content( content ), contentSize( size ){} 
};


#endif	/* COMPRESSIONDATA_H */

